##################################################################
## Array Slicing and Splicing with Ranges
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
console.log numbers[0..2]  # [ 1, 2, 3 ]; 两个点包括右边
console.log numbers[3...-2]  # [ 4, 5, 6, 7 ]; 三个点不包括最右边
console.log numbers[-2..]  # [ 8, 9 ]; an omitted second index defaults to the size of the array.
console.log numbers[..]  # [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]; An omitted first index defaults to zero
numbers[3..6] = [-3, -4, -5, -6]; console.log numbers  # [ 1, 2, 3, -3, -4, -5, -6, 8, 9 ]
